<template>
  <div class="sidebar">
    <div class="user-panel">
      <div class="welcome">欢迎~</div>
      <div class="auth-buttons">
        <button class="register">注册</button>
        <button class="login">立即登录</button>
      </div>
      <div class="slogan">广告语：**** ***********</div>
    </div>

    <div class="quick-links">
      <div class="link">浏览记录</div>
      <div class="link">商品收藏</div>
      <div class="link">关注店铺</div>
      <div class="link">个人中心</div>
    </div>

    <div class="cart-panel">
      <h3>购物车</h3>
      <div class="empty-cart">购物车是空的</div>
    </div>

    <div class="footer-links">
      <div class="link">客服</div>
      <div class="link">反馈</div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Sidebar",
};
</script>

<style scoped>
.sidebar {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 4px;
}

.user-panel {
  margin-bottom: 20px;
}

.welcome {
  font-size: 16px;
  margin-bottom: 10px;
}

.auth-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.auth-buttons button {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  background-color: white;
  border-radius: 4px;
  cursor: pointer;
}

.auth-buttons .login {
  background-color: #42b983;
  color: white;
  border-color: #42b983;
}

.slogan {
  font-size: 12px;
  color: #666;
}

.quick-links {
  margin-bottom: 20px;
}

.link {
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
  cursor: pointer;
}

.link:hover {
  color: #42b983;
}

.cart-panel h3 {
  margin-top: 0;
  font-size: 16px;
}

.empty-cart {
  text-align: center;
  padding: 20px;
  color: #999;
  background-color: #f5f5f5;
  border-radius: 4px;
}

.footer-links {
  margin-top: 20px;
  display: flex;
  justify-content: space-around;
}
</style>
